package com.hd.assistant.dal.dao.orderming;

import java.util.List;

import com.hd.assistant.dal.dao.exception.DAOException;
import com.hd.assistant.dal.dao.query.ordermining.TcOrderQuery;
import com.hd.assistant.dal.dataobject.ordermining.Reports;
import com.hd.assistant.dal.dataobject.ordermining.TcOrder;

public interface TcOrderDAO {

	void insertTOrder(TcOrder order)throws DAOException;
	TcOrder getTOrderByTid(Long tid)throws DAOException;
	int updateTOrder(TcOrder update)throws DAOException;
	TcOrderQuery getTOrdersByQuery(TcOrderQuery query)throws DAOException;
	
	List<Reports>getReportsByUserId(Long userId, Integer type,String dateFrom,String dateTo)throws DAOException;
	
	List<Reports>getBuyerReportsByUserId(Long userId, Integer tradeFrom)throws DAOException;
}
